package com.qyer.lxp.model.product.normal;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * 获取产品预定需要填写的问题信息
 * Created by wangzhen on 16/5/18.
 */

@XmlRootElement(name = "book-question")
@XmlAccessorType(XmlAccessType.FIELD)
public class ProductBookQuestion implements Serializable{
    private static final long serialVersionUID = 2299530736223326143L;

    private int id;

    /**
     * 问题 id,预订的时候传
     */
    @XmlElement(name = "question-id")
    private String questionId;

    /**
     * 内容
     */
    @XmlElement(name = "content")
    private String content;

    /**
     * 是否必须回答
     */
    @XmlElement(name = "required")
    private String required;

    /**
     * 回答示例
     */
    @XmlElement(name = "example")
    private String example;


    private String productCode;

    /**
     * 回答
     */
    @XmlElementWrapper(name = "answer-list")
    @XmlElement(name = "answer")
    private List<ProductBookAnswer> bookAnswers;

    private String answerCode;

    private String answerContent;

    /**
     * 是问题还是答案  1问题  2答案
     */
    private int isQA;

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRequired() {
        return required;
    }

    public void setRequired(String required) {
        this.required = required;
    }

    public String getExample() {
        return example;
    }

    public void setExample(String example) {
        this.example = example;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<ProductBookAnswer> getBookAnswers() {
        return bookAnswers;
    }

    public void setBookAnswers(List<ProductBookAnswer> bookAnswers) {
        this.bookAnswers = bookAnswers;
    }

    public String getAnswerCode() {
        return answerCode;
    }

    public void setAnswerCode(String answerCode) {
        this.answerCode = answerCode;
    }

    public String getAnswerContent() {
        return answerContent;
    }

    public void setAnswerContent(String answerContent) {
        this.answerContent = answerContent;
    }

    public int getIsQA() {
        return isQA;
    }

    public void setIsQA(int isQA) {
        this.isQA = isQA;
    }
}
